//
//  ADViewController.swift
//  YJAdvertisingDemo
//
//  Created by Jim1024 on 2017/2/14.
//  Copyright © 2017年 Jim1024. All rights reserved.
//

import UIKit
import WebKit

class ADViewController: UIViewController {
    
     var urlString: String?

    override func viewDidLoad() {
        super.viewDidLoad()
        title = "广告详情"
        
        let webView = WKWebView(frame: view.frame)
        if let urlString = urlString {
            webView.load(URLRequest(url: URL(string: urlString)!))
        }
        view.addSubview(webView)
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
